import java.util.Collections;
import java.util.List;

/**
 * @author sjw
 * @className CollectionssingletonList
 * @date 2021/10/17 17:53
 * @description: TODO
 */
public class CollectionssingletonList {

    public static void main(String[] args) {
        for (int i=0;i<10;i++){
            List<Integer> list= Collections.singletonList(i);
            System.out.println(list.getClass());
            System.out.println(list.hashCode());
            System.out.println(list);
        }
    }
}
